package com.ruoyi.rgpp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rgpp.mapper.JmrCompanyMapper;
import com.ruoyi.rgpp.domain.JmrCompany;
import com.ruoyi.rgpp.service.IJmrCompanyService;
import com.ruoyi.common.core.text.Convert;

/**
 * 企业信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-14
 */
@Service
public class JmrCompanyServiceImpl implements IJmrCompanyService 
{
    @Autowired
    private JmrCompanyMapper jmrCompanyMapper;

    /**
     * 查询企业信息
     * 
     * @param card 企业信息主键
     * @return 企业信息
     */
    @Override
    public JmrCompany selectJmrCompanyByCard(String card)
    {
        return jmrCompanyMapper.selectJmrCompanyByCard(card);
    }

    /**
     * 查询企业信息列表
     * 
     * @param jmrCompany 企业信息
     * @return 企业信息
     */
    @Override
    public List<JmrCompany> selectJmrCompanyList(JmrCompany jmrCompany)
    {
        return jmrCompanyMapper.selectJmrCompanyList(jmrCompany);
    }

    /**
     * 新增企业信息
     * 
     * @param jmrCompany 企业信息
     * @return 结果
     */
    @Override
    public int insertJmrCompany(JmrCompany jmrCompany)
    {
        return jmrCompanyMapper.insertJmrCompany(jmrCompany);
    }

    /**
     * 修改企业信息
     * 
     * @param jmrCompany 企业信息
     * @return 结果
     */
    @Override
    public int updateJmrCompany(JmrCompany jmrCompany)
    {
        return jmrCompanyMapper.updateJmrCompany(jmrCompany);
    }

    /**
     * 批量删除企业信息
     * 
     * @param cards 需要删除的企业信息主键
     * @return 结果
     */
    @Override
    public int deleteJmrCompanyByCards(String cards)
    {
        return jmrCompanyMapper.deleteJmrCompanyByCards(Convert.toStrArray(cards));
    }

    /**
     * 删除企业信息信息
     * 
     * @param card 企业信息主键
     * @return 结果
     */
    @Override
    public int deleteJmrCompanyByCard(String card)
    {
        return jmrCompanyMapper.deleteJmrCompanyByCard(card);
    }
}
